package com.cankfc.controller;

import java.util.ArrayList;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cankfc.service.RoleServiceInfo;

/**
 * 
 * @author zwz
 * 
 */
@Controller
@RequestMapping("role")
public class RoleController {
	private RoleServiceInfo roleService;

	public RoleServiceInfo getRoleService() {
		return roleService;
	}

	public void setRoleService(RoleServiceInfo roleService) {
		this.roleService = roleService;
	}

	@RequestMapping("/findall")
	public String findrole() {
		ArrayList listrole = new ArrayList();
		try {
			listrole = roleService.findRole();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return "welcome";
	}

}
